<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>

</html>
<script>
    // for (var i = "100"; i <= "999"; i++) {
    //     var aa = i + ''
    //     var key = aa.split("")
    //     var kk = Number(key[0])**3 + Number(key[1])**3 + Number(key[2])**3
    //     if(kk == i){
    //         console.log(i);
    //     }
    // }

    function res(i) {
        if (i == 999) return i = 999
        var aa = i + ''
        var key = aa.split("")
        var kk = Number(key[0]) ** 3 + Number(key[1]) ** 3 + Number(key[2]) ** 3
        if (kk == i) {
            console.log(i);
        }
        res(i+1)
    }
    res(100)
</script>